home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C/C++ Users Group Library 1996 July
/
C-C++ Users Group Library July 1996.iso
/
vol_200
/
273_01
/
rightstr.cc
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
Text File
|
1987-09-26
|
363 b
|
13 lines
right_str(int x, char *str, char *new_str)
/* This will take the right x number of character from the string pointed
to by *str and place them into the string pointed to by *new_str.
*/
{
str=str + strlen(str) - x;
while(*str) {
*new_str=*str;
new_str++; str++;
}
*new_str=0x00;
}